package com.wzu.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

@TableName("disease")
public class Disease implements Serializable {
    @TableId(type = IdType.AUTO)
    private Long id; // 序号
    private String diseaseCode; // 疾病编码
    private String pinyinCode;  // 拼音码
    private String diseaseName; // 疾病名称
    private Date createTime;    // 创建时间
    private Date updateTime;    // 更新时间

    public Disease() {}
    public Disease(Long id, String diseaseCode, String pinyinCode, String diseaseName, Date createTime, Date updateTime) {
        this.id = id;
        this.diseaseCode = diseaseCode;
        this.pinyinCode = pinyinCode;
        this.diseaseName = diseaseName;
        this.createTime = createTime;
        this.updateTime = updateTime;
    }
    public Long getId() { return id; }
    public void setId(Long id) { this.id = id; }
    public String getDiseaseCode() { return diseaseCode; }
    public void setDiseaseCode(String diseaseCode) { this.diseaseCode = diseaseCode; }
    public String getPinyinCode() { return pinyinCode; }
    public void setPinyinCode(String pinyinCode) { this.pinyinCode = pinyinCode; }
    public String getDiseaseName() { return diseaseName; }
    public void setDiseaseName(String diseaseName) { this.diseaseName = diseaseName; }
    public Date getCreateTime() { return createTime; }
    public void setCreateTime(Date createTime) { this.createTime = createTime; }
    public Date getUpdateTime() { return updateTime; }
    public void setUpdateTime(Date updateTime) { this.updateTime = updateTime; }
    @Override
    public String toString() {
        return "Disease{" +
                "id=" + id +
                ", diseaseCode='" + diseaseCode + '\'' +
                ", pinyinCode='" + pinyinCode + '\'' +
                ", diseaseName='" + diseaseName + '\'' +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                '}';
    }
} 